﻿using PMP.Core.Entities;

namespace PMP.Application.Models;

/// <summary>
/// 登录参数
/// </summary>
public class LoginParam
{
    /// <summary>
    /// 用户名/手机号
    /// </summary>
    public string LoginName { get; set; } = "";
    /// <summary>
    /// 密码（明文）
    /// </summary>
    public string Password { get; set; } = "";
    /// <summary>
    /// 验证码key
    /// </summary>
    public string CaptchaKey { get; set; } = "";
    /// <summary>
    /// 验证码
    /// </summary>
    public string CaptchaCode { get; set; } = "";
}

public class LoginResponse
{
    /// <summary>
    /// 访问令牌
    /// </summary>
    public string AccessToken { get; set; } = "";
    /// <summary>
    /// 刷新令牌
    /// </summary>
    public string RefreshToken { get; set; } = "";
    /// <summary>
    /// 用户信息
    /// </summary>
    public TbAccount UserInfo { get; set; }  
}